package com.ynet.middleground.contract.bean;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 更新合约签署后文件地址请求信息
 * @date 2020-10-19 15:42
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "更新合约签署后文件地址请求信息", description = "更新合约签署后文件地址请求信息")
public class UpdateContractSignedPathReq extends BaseReqObj {

    private static final long serialVersionUID = -714873704227408514L;

    /**
     * 合约id
     */
    @ApiModelProperty(value = "合约 id", notes = "合约 id", required = true, dataType = "Integer")
    @NotNull(message = "合约 id 不能为空")
    private Integer contractId;

    /**
     * 签署后的合约 PDF OSS 地址
     */
    @ApiModelProperty(value = "签署后的合约 PDF 文件 OSS 短路径地址(包含 Bucket) \n  如：zhongtai/file.pdf",
        notes = "签署后的合约 PDF 文件 短路径地址(包含 Bucket) \n  如：zhongtai/file.pdf", required = true, dataType = "String")
    @NotEmpty(message = "OSS 文件地址不能为空")
    private String pdfOssUrl;

}
